package com.wang.service;

import com.wang.mapper.DevStandRangeDao;
import com.wang.pojo.DevStandRange;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author wcy
 * @date 2022-08-10 15:27
 */
@Transactional
@Service
public class DevStandRangeServiceImpl implements DevStandRangeService {


    @Autowired
    private DevStandRangeDao devStandRangeDao;

    @Override
    public void addDevStandRange(DevStandRange devStandRange) {
        devStandRangeDao.addDevStandRange(devStandRange);
    }

    @Override
    public List<DevStandRange> selectDevStandRangeByDevId(Integer devId) {
        return devStandRangeDao.selectDevStandRangeByDevId(devId);
    }

    @Override
    public void uEditDevStandRange(DevStandRange devStandRange) {
        devStandRangeDao.uEditDevStandRange(devStandRange);
    }

    @Override
    public void clearDevStandRange(Integer devSRId) {
        devStandRangeDao.clearDevStandRange(devSRId);
    }

    @Override
    public DevStandRange selectDevStandRangeByDevIdAndParamCode(Integer devId, String paramCode) {
        return devStandRangeDao.selectDevStandRangeByDevIdAndParamCode(devId, paramCode);
    }
}
